//--------------------------------------侧边栏下拉
    // 按钮
    let dropdownBtn = document.getElementById("btn");
    // 下拉
    let dropdownMenu = document.getElementById("dropdown");
    // 旋钮
    let toggleArrow = document.getElementById("arrow");

    let toggleDropdown = function () {
        dropdownMenu.classList.toggle("show");
        toggleArrow.classList.toggle("arrow");
    };

    dropdownBtn.addEventListener("click", function (e) {
        e.stopPropagation();
        toggleDropdown();
    });

//--------------------------------------下拉结束




    //--------------------确认按钮
    document.querySelector('.yesser').addEventListener('click',e=>{
        e.preventDefault();
    },
    function(){
        let userName = document.querySelector('.userName')
        let bookId = document.querySelector('.bookId')
        let Number = document.querySelector('.Number')
        let bookName = document.querySelector('.bookName')

        if(userName === 0 || bookId === 0 || Number === 0 || bookName === 0){
            alert("图书内容不完整")
            return false
        }else{
            alert('提交成功')
        }
    })
    //--------------------确认over




    //-------------------取消按钮
    document.getElementById('clearInput').addEventListener('click',function(){
        let myInputs = document.querySelectorAll('input[type="text"]')
        myInputs.forEach(function(input){
            input.value = ''
        });
    })
    //-------------------取消over